A callback called whenever a resource is being processed, during a save or load of resource set. More...
Public Member Functions | |
| ResourceDeclAugmentCallback () noexcept | |
| virtual | ~ResourceDeclAugmentCallback () |
| virtual void | onCamera (Camera *camera, nkExport::Node *rootNode) |
| virtual void | onMesh (Mesh *mesh, nkExport::Node *rootNode) |
| virtual void | onRenderQueue (RenderQueue *renderQueue, nkExport::Node *rootNode) |
| virtual void | onShader (Shader *shader, nkExport::Node *rootNode) |
| virtual void | onTexture (Texture *texture, nkExport::Node *rootNode) |
A callback called whenever a resource is being processed, during a save or load of resource set.
This enables to export and load additional data from an application on resources.
Callbacks get called :
External code can then read application specific fields from the tree when loading, or add information to the tree while saving.
|
noexcept |
Constructor.
|
virtual |
Destructor.
|
virtual |
Called when a camera is being processed.
| camera | The camera being processed. |
| rootNode | The tree attached to the resource. |
|
virtual |
Called when a mesh is being processed.
| mesh | The mesh being processed. |
| rootNode | The tree attached to the resource. |
|
virtual |
Called when a render queue is being processed.
| renderQueue | The render queue being processed. |
| rootNode | The tree attached to the resource. |
|
virtual |
Called when a shader is being processed.
| shader | The shader being processed. |
| rootNode | The tree attached to the resource. |
|
virtual |
Called when a texture is being processed.
| texture | The texture being processed. |
| rootNode | The tree attached to the resource. |